package com.qiangesoft.pay.app.service;

import com.wechat.pay.java.service.refund.model.Refund;

/**
 * 退款服务
 */
public interface IRefundService {

    /**
     * 退款
     *
     * @param outTradeNo
     * @param outRefundNo
     * @param refundReason
     * @param totalFee
     * @param refundFee
     */
    void refund(String outTradeNo, String outRefundNo, String refundReason, Long totalFee, Long refundFee);

    /**
     * 退款查询
     *
     * @param outRefundNo
     * @return
     */
    Refund query(String outRefundNo);

    /**
     * 退款回调
     *
     * @param refund
     * @return
     */
    void notify(Refund refund);

}

